package tgc.edu.ljc.layui.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import tgc.edu.ljc.layui.custom.CommonService;
import tgc.edu.ljc.layui.entity.Stu;
import tgc.edu.ljc.layui.repository.StudentRepository;

@Service
public class StuService extends CommonService<Stu, Integer>{
	@Autowired
	private StudentRepository stuDAO;
	public Page<Stu> findByTbClassId(int classId, Pageable pageable) {
		
		return stuDAO.findByTbClassId(classId,pageable);
	}
	public List<Stu> findByTbClassId(Integer classId) {
		return stuDAO.findByTbClassId(classId);
	}


}
